package com.share.beta.chain.event.impl;

import com.share.beta.chain.event.AbstractEvent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class CostEvent extends AbstractEvent {

    @Override
    public void event() {
        log.info("调用CostEvent");
        AbstractEvent next = getNext();
        if (next != null) {
            next.event();
        }
    }
}
